#include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/ioctl.h>
#include <sys/stat.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>

#include "bmi088.h"

/**
******************************************************************************
* @file           : bmi088-acclerometer.c
* @brief          : implement for bmi088-acclerometer.c file.
*                   This file contains the common implement of the application.
* @author		  : ac
* @attention
*
*		Copyright (c) 2021 Technology Co., Ltd.
*
*******************************************************************************
*/

/*
 * globla variable
 */



/*
 * function declaration
 */



static int8_t xag_spi_read_accelerometer(uint8_t reg_addr, uint8_t *data, uint16_t len)
{
	return -1;
}



/**
 * xag_user_read_accelerometer - read accelerometer.
 *	@none
 */
XAG_VOID xag_user_read_accelerometer()
{
	uint8_t buf[0x10] = {0};

	/* operation */
	while (1) {
		
		/* read ID */
		xag_spi_read_accelerometer(0x00|0x80, buf, 1);
		

		usleep(5 * 1000);	/* 5ms */
	}

}





